/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package InternetHax;

import InternetHax.App;
import java.util.Vector;

/**
 *
 * @author LoginError
 */
public class Tile {


    private int tileType = Constants.TILE_ERROR;
    private Actor actorOnTile = null;
    private Vector itemsOnTile = null;

    public Tile(int tiletype) {
        this.tileType = tiletype;
    }

    public int getTileType() {
        return tileType;
    }

    public void setTileType(int tiletype) {
        this.tileType = tiletype;
    }

    public Actor getActorOnTile() {
        return actorOnTile;
    }

    public void setActorOnTile(Actor actorOnTile) {
        this.actorOnTile = actorOnTile;
    }

    public Vector getItems() {
        return itemsOnTile;
    }

    public String toString()
    {
        return "\nTile ID: "+tileType+"\n\nACTOR ON TILE:"+(actorOnTile == null ? "None" : ""+actorOnTile.toString())+ "\n\nITEMS ON TILE: "+ (itemsOnTile == null ? "None" : ""+itemsOnTile.size());
    }

    public void setItems(Vector itemsOnTile) {
        this.itemsOnTile = itemsOnTile;
    }
}
